package com.hly.musicbackground.model.boots.params;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FictionQueryParams {

    @ApiModelProperty(value = "是否开启随机")
    private boolean isRandom;

    @ApiModelProperty(value = "一页多少个",required = true)
    private int limit;//一页多少个【必填】

    @ApiModelProperty(value = "第几页",required = true)
    private int page;//第几页【必填】

    @ApiModelProperty(value = "小说最小字数")
    private int minNumWord;//小说最小字数【选填】

    @ApiModelProperty(value = "小说最大字数")
    private int maxNumWord;//小说最大字数【选填】

    @ApiModelProperty(value = "小说类型id")
    private int fictionClassId;//小说类型id【选填】

    @ApiModelProperty(value = "搜索关键字")
    private String key;//搜索关键字【选填】

    @ApiModelProperty(value = "最小更新时间")
    private Date minTime;//最小更新时间【选填】

    @ApiModelProperty(value = "最大更新时间")
    private Date maxTime;//最大更新时间【选填】

    @ApiModelProperty(value = "是否完结")
    private int isEnd;//是否完结【选填】

    @ApiModelProperty(value = "排序(示例：id:desc;time:desc)")
    private String sort;//排序【选填】(示例：id:desc;time:desc)
}
